<div class="row">
                       
                        <div class="col-md-12">
                             <div class="box">
                               
                                <div class="box-body">
                                    <?php if($message){?>
                                    <div class="alert alert-success">   <?php echo $message;?></div>
                                    <?php } ?>
                                    <?php echo form_open(current_url(), array('class' => 'form-horizontal','onsubmit'=>'return dosubmit();','id' => 'form-create_notice')); ?>
                                
                                <div class="box-header with-border">
                                    <div class="pull-right"><?php echo anchor('backend/sfexpress/record', '<i class="fa fa-list"></i> 发单记录', array('class' => 'btn btn-block btn-sm btn-primary btn-flat')); ?></div>
                                    <h3 class="box-title"><?php

                                        if($orderid>0)
                                        {
                                            echo '<span class="btn btn-xs btn-flat btn-success" onclick="order_detail(\''.$order["ordersn"].'\','.$orderid.')">查看订单</span>';
                                        }
                                    ?> 申报信息</h3>
                                
                                </div>
                                <div class="box-body">

                                       <div class="form-group col-sm-4">
                                          <?php  echo '<label for="url"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>申报中文</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($cnname);?></span>
                                            </div>
                                       </div>
                                       <div class="form-group  col-sm-4">
                                          <?php  echo '<label for="note"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>申报英文</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($enname);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group  col-sm-4">
                                          <?php  echo '<label for="note"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>申报数量</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($number);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group  col-sm-4">
                                          <?php  echo '<label for="note"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>申报单价</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;">
                                                <div class="input-group"><div class="input-group-addon">$</div>
                                                <?php echo form_input($price);?></div>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="form-group  col-sm-4">
                                          <?php  echo '<label for="note"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>申报总价</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;">
                                                <div class="input-group"><div class="input-group-addon">$</div>
                                                <?php echo form_input($total);?>
                                                </div></span>
                                            </div>
                                        </div>
                                        </div>

                                  <div class="box-header with-border">
                                    <h3 class="box-title">收件人信息</h3>
                                </div>
                                <div class="box-body">




                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件国家</label>';?>
                                            <div class="col-sm-9">

                                            <select class="form-control" name="re_country">
                                                    <option value="US" <?php if(isset($order) && $order["countryiso"]=="US") echo 'selected';?>>美国</option>
                                                    <option value="AU" <?php if(isset($order) && $order["countryiso"]=="AU") echo 'selected';?>>澳大利亚</option>
                                                    <option value="GB" <?php if(isset($order) && $order["countryiso"]=="GB") echo 'selected';?>>英国</option>
                                                    <option value="FR" <?php if(isset($order) && $order["countryiso"]=="FR") echo 'selected';?>>法国</option>
                                                    <option value="DE" <?php if(isset($order)&& $order["countryiso"]=="DE") echo 'selected';?>>德国</option>
                                                    <option value="NL" <?php if(isset($order) && $order["countryiso"]=="NL") echo 'selected';?>>荷兰</option>
                                                    <option value="CA" <?php if(isset($order) && $order["countryiso"]=="CA") echo 'selected';?>>加拿大</option>
                                                    <option value="IT" <?php if(isset($order) && $order["countryiso"]=="IT") echo 'selected';?>>意大利</option>
                                                </select>

                                            </div>
                                        </div>

                                         <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件州省</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($re_state);?></span>
                                            </div>
                                        </div>

                                         <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件城市</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($re_city);?></span>
                                            </div>
                                        </div>

                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件邮编</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($re_postcode);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件地址</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($re_address);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件人</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($reciver);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件电话</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($re_phone);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>收件手机</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($re_mobile);?></span>
                                            </div>
                                        </div>
                                </div>


                                 <div class="box-header with-border">
                                    <h3 class="box-title">寄件人信息</h3>
                                </div>
                                <div class="box-body">

                                      <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>寄件公司</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($se_company);?></span>
                                            </div>
                                        </div>

                                          <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>寄件人</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($sender);?></span>
                                            </div>
                                        </div>

                                      <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>寄件手机</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($se_mobile);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>寄件省</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($se_state);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>寄件城市</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($se_city);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>寄件地址</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($se_address);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>寄件邮编</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($se_postcode);?></span>
                                            </div>
                                        </div>

                                </div>


                                 <div class="box-header with-border">
                                    <h3 class="box-title">基本信息</h3>
                                </div>
                                <div class="box-body">

                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>用户单号</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><?php echo form_input($ordersn);?></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>运输方式</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;">
                                                <select class="form-control" name="method">
                                                    <option value="E1">国际小包平邮</option>
                                                    <option value="E2">国际小包挂号</option>
                                                    <option value="E3" selected>国际电商专递-标准</option>
                                                    <option value="E9">国际电商专递-快速</option>
                                                    <option value="F1">国际电商专递-送仓</option>
                                                    <option value="F2">国际电商专递-CD</option>
                                                </select>


                                                </span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>用户重量</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><div class="input-group"><?php echo form_input($weight);?><div class="input-group-addon">KG</div></div></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>长</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><div class="input-group"><?php echo form_input($length);?><div class="input-group-addon">CM</div></div></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>宽</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><div class="input-group"><?php echo form_input($width);?><div class="input-group-addon">CM</div></div></span>
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-4">
                                          <?php  echo '<label for="name"'._stringify_attributes(array('class' => 'col-sm-3 control-label')).'>高</label>';?>
                                            <div class="col-sm-9">
                                                <span style="line-height:20px;"><div class="input-group"><?php echo form_input($height);?><div class="input-group-addon">CM</div></div></span>
                                            </div>
                                        </div>
                                </div>
                                        <div class="form-group">
                                            <div class="col-sm-offset-1 col-sm-11">
                                                <div class="btn-group">
                                                    <input type="hidden" name="orderid" value="<?php echo $orderid;?>">
                                                    <?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => lang('actions_submit'))); ?>
                                                    <?php echo form_button(array('type' => 'reset', 'class' => 'btn btn-warning btn-flat', 'content' => lang('actions_reset'))); ?>
                                                    <?php echo anchor('admin/tbshop', lang('actions_cancel'), array('class' => 'btn btn-default btn-flat')); ?>
                                                </div>
                                            </div>
                                        </div>
                                    <?php echo form_close();?>
                                </div>
                            </div>
                        </div>

                    </div>


<script>

var isCommitted = false;//表单是否已经提交标识，默认为false
function dosubmit(){
    if(isCommitted==false){
        isCommitted = true;//提交表单后，将表单是否已经提交标识设置为true
        return true;//返回true让表单正常提交
    }else{
        return false;//返回false那么表单将不提交
    }
}

var order_detail=function(title,oid){
    layer.open({
    type: 2,
    title: title+' 订单详情',
    shadeClose: true,
    shade: 0.8,
    area: ['94%', '90%'],
    content: '/backend/sites/order/detail/'+oid+'?hidepost=1'
    }); 
}

</script>
